﻿using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;

public partial class dds_pages_Register : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {

    }
    protected void btnSubmit_Click(object sender, EventArgs e)
    {
        string email = txtEmail.Text.Trim();
        string username = txtUserName.Text.Trim();
        string pwd = txtPwd.Text.Trim();
        dds_users user = new dds_users();
        if (user.Add(email, username, pwd))
        {
            JScript.AlertAndRedirect("注册成功！", this.Request.RawUrl);
        }
        else
            JScript.Alert("注册失败！");
    }
}
